﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class admin_AdminManagre : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if(!IsPostBack)
                if (Request["adminID"] != null) 
                {
                    try
                    {
                        int code = Int32.Parse(Request["Code"]);
                        switch (code) 
                        {
                            case 2:
                                break;
                            case 3:
                                break;
                        }
                    }
                    catch (Exception ex) 
                    {
                    
                    }
                }
        }
        catch (Exception ex) 
        {
        
        }
    }
    protected void gvAdmin_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            int adminID = Int32.Parse(gvAdmin.SelectedDataKey.Value.ToString());
            Response.Redirect("AdminDetails.aspx?adminID="+adminID);
        
        }
        catch (Exception ex) 
        {
        
        }
    }
}
